<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<f:view locale="#{LanguageBean.localeCode}" contentType="text/html">
	<h:head>
		<f:facet name="first">
			<meta content='text/html; charset=UTF-8' http-equiv="Content-Type" />
			<title>#{msg.label_welcome}</title>
		</f:facet>
		<link rel="icon" type="image/ico" href="#{request.contextPath}/icon.gif" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/default.css" />
		<link type="text/css" rel="stylesheet"
			href="#{request.contextPath}/css/syntaxhighlighter/syntaxhighlighter.css" />
		<ui:insert name="head"></ui:insert>
	</h:head>
	<h:body>
		<div id="header" class="ui-widget ui-widget-header ui-corner-all">
			<div id="logo">
				<img src="#{request.contextPath}/img/logo_netbrain.png" alt="Logo" />
			</div>
			<div id="globalthemeswitcher">
				<h:form>
					<h:selectOneMenu value="#{LanguageBean.localeCode}"
						style="width:100px;" effect="fade" onchange="submit()"
						valueChangeListener="#{LanguageBean.countryLocaleCodeChanged}">
						<f:selectItems value="#{LanguageBean.countriesInMap}" />
					</h:selectOneMenu>
				</h:form>
			</div>
		</div>
		<div id="page" class="ui-widget">
			<p:dialog header="#{msg.button_login}" visible="true" widgetVar="dlg">
				<h:form>
					<p:growl id="messages" />
					<h:panelGrid columns="2" cellpadding="5">
						<h:outputLabel for="username" value="#{msg.label_user}" />
						<p:inputText value="#{UserLoginBean.username}" id="username"
							required="true" label="username" />
						<h:outputLabel for="password" value="#{msg.label_password}" />
						<p:password value="#{UserLoginBean.password}" id="password"
							required="true" label="password" />
						<f:facet name="footer">
							<p:commandButton id="loginButton" value="#{msg.button_login}"
								update="messages" action="#{UserLoginBean.validateLogin}"
								icon="llave" />
						</f:facet>
					</h:panelGrid>
				</h:form>
			</p:dialog>
			<div style="clear: both;">&nbsp;</div>
		</div>
	</h:body>
</f:view>
</html>